import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import {Card} from './models/card.entity';
// 将Card的服务注入进模块
import { CardService } from './card.service';
import { CardResolver } from './card.resolver';

@Module({
    imports:[TypeOrmModule.forFeature([Card])],
    providers:[CardService, CardResolver],
    exports:[CardService],
})
export class CardModule {}